package cn.fx.framework.exception;

import cn.fx.framework.cons.ErrorCodeMessage;

/**
 * 重复请求
 * @author ljh
 * @date 2020/4/21 8:54
 */
public class RepeatRequestException extends BaseException {
    private String url;
    private String queryParams;
    private String headers;
    private String body;
    public RepeatRequestException(){
        this("系统检测到本次请求为重复提交，不必再提交，可刷新页面后再提交！");
    }

    public RepeatRequestException(String msg){
        super(ErrorCodeMessage.REPEAT_REQUEST_MSG.getCode(), msg);
    }

    public String getUrl() {
        return url;
    }
    public void setUrl(String url) {
        this.url = url;
    }

    public String getQueryParams() {
        return queryParams;
    }
    public void setQueryParams(String queryParams) {
        this.queryParams = queryParams;
    }

    public String getHeaders() {
        return headers;
    }
    public void setHeaders(String headers) {
        this.headers = headers;
    }

    public String getBody() {
        return body;
    }
    public void setBody(String body) {
        this.body = body;
    }
}
